package excercise;

public class Q40_Books {

	/*mno, title, writer, equals
	관리번호, 제목, 저자, getLastFees
	관리번호, 제목, 저자, getLastFees
	관리번호, 제목, 저자, getLastFees*/
	private String mno;
	private String title;
	private String writer;
	
	public Q40_Books() {
		this.mno = "";
		this.title = "";
		this.writer = "";
	}
	public Q40_Books(String mno, String title, String writer) {
		this.mno = mno;
		this.title = title;
		this.writer = writer;
	}
	
	public void setMno(String mno){ this.mno = mno;}
	public void setTitle(String title){this.title = title;}
	public void setWriter(String writer){this.writer = writer;}
	
	public String getMno(){return this.mno;}
	public String getTitle(){return this.title;}
	public String getWriter(){return this.writer;}
	

	public boolean equals(Q40_Books yourBook) {
		boolean result = false;
		if (mno==yourBook.mno && title == yourBook.title && writer == yourBook.writer)
			result = true;
		return result;
	}
	public int getLastFees(int day){
		return 0;
	}
	
}
